package cn.cqautotest.cqviehelper.adapters;

import android.content.Context;
import android.view.ViewGroup;

import cn.cqautotest.cqviehelper.R;

import org.yczbj.ycrefreshviewlib.adapter.RecyclerArrayAdapter;
import org.yczbj.ycrefreshviewlib.swipeMenu.YCSwipeMenu;
import org.yczbj.ycrefreshviewlib.viewHolder.BaseViewHolder;

public class MenuItemAdapter extends RecyclerArrayAdapter<Integer> {
    public MenuItemAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder<Integer> OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new BannerViewHolder(parent);
    }

    public static class BannerViewHolder extends BaseViewHolder<Integer> {

        private YCSwipeMenu mSwipeMenu;

        public BannerViewHolder(ViewGroup parent) {
            super(parent, R.layout.item_menu_home);
            mSwipeMenu = getView(R.id.swipeMenu);
        }
    }
}
